//:C03:rhodium.c -- 用金属铑衡量您的体重
#include <stdio.h>
int main(void)
{
    float weight;
    float value;
    printf("Are you worth your weight in rhodium?\n");
    printf("Let's check it out.\n");
    printf("Please enter your weight in pounds: ");

    //获取输入
    scanf("%f",&weight);
    //假设铑为每盎司770美元
    //14.5833把常衡制的英镑转换为金衡制的盎司
    value = 770 * weight * 14.5833;
    printf("Your weight in rhodium is worth $%.2f.\n", value);
    printf("You are easily worth that! if rhodium prices drop, \n");
    printf("eat more to maintain your value.\n");
}